package vip.denglei.company.controller.app;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import vip.denglei.company.service.app.AppBannerService;
import vip.denglei.company.util.HttpResult;

import javax.annotation.Resource;

/**
 * Banner控制层
 */
@RequestMapping(value = "/appBanner")
@RestController
@Slf4j
public class AppBannerController {

    @Resource
    private AppBannerService appBannerService;

    /**
     * 获取小程序banner
     *
     * @return
     */
    @GetMapping(value = "/get/banner")
    public HttpResult getbanner() {
        log.info("AppBannerController getbanner");
        return HttpResult.success(appBannerService.list());
    }
}
